class LatestAnalysisBean {
  int doorOcTimes = 0;
  int evTimes = 0;
  String id = 'xxx';
  int totalMileage = 0;
  int totalRunTime = 0;
  int trapTimes = 0;
  int troubleTimes = 0;

  LatestAnalysisBean(
      {this.doorOcTimes,
      this.evTimes,
      this.id,
      this.totalMileage,
      this.totalRunTime,
      this.trapTimes,
      this.troubleTimes});

  LatestAnalysisBean.fromJson(Map<String, dynamic> json) {
    if (json != null) {
      doorOcTimes = json['doorOcTimes'];
      evTimes = json['evTimes'];
      id = json['id'];
      totalMileage = json['totalMileage'];
      totalRunTime = json['totalRunTime'];
      trapTimes = json['trapTimes'];
      troubleTimes = json['troubleTimes'];
    }
  }
}
